﻿@model ChangePasswordViewModel
@{
    ViewData["Title"] = "Change Password";
}

<h2>@ViewData["Title"]</h2>

<form asp-controller="Admin" asp-action="ChangePassword" method="post" class="form-horizontal" role="form">
    <hr />
    <div asp-validation-summary="All" class="text-danger"></div>
    <div class="am-form-group">
        <label asp-for="OldPassword" class="col-md-2 am-form-label"></label>
        <div class="col-md-10">
            <input asp-for="OldPassword" class="am-form-field" />
            <span asp-validation-for="OldPassword" class="text-danger"></span>
        </div>
    </div>
    <div class="am-form-group">
        <label asp-for="NewPassword" class="col-md-2 am-form-label"></label>
        <div class="col-md-10">
            <input asp-for="NewPassword" class="am-form-field" />
            <span asp-validation-for="NewPassword" class="text-danger"></span>
        </div>
    </div>
    <div class="am-form-group">
        <label asp-for="ConfirmPassword" class="col-md-2 am-form-label"></label>
        <div class="col-md-10">
            <input asp-for="ConfirmPassword" class="am-form-field" />
            <span asp-validation-for="ConfirmPassword" class="text-danger"></span>
        </div>
    </div>
    <div class="am-form-group">
        <div class="col-md-offset-2 col-md-10">
            <button type="submit" class="am-btn am-btn-primary">Change password</button>
        </div>
    </div>
</form>

@section Scripts {
    @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
}
